import { createGetRequest, createPostRequest } from '@/utils/request'
import { waitTime } from '@/utils/wait'


// 获取体检详情1
const getEntryExamInfo = async (data) => {
    return await createGetRequest('/tj/recordDetail', data)
}

// 获取入监体检列表1
const getEntryExamList = async (params): Promise<any> => {
    return await createGetRequest('/tj/list', params)
}

// 删除患者1
const deleteEntryExam = async (recordId) => {
    return await createGetRequest('/tj/deleteRecord', { recordId })
}


// 保存入监体检1
const saveExam = async (values) => {
    return await createPostRequest('/tj/saveBL', values)
}

// 编辑入监体检1
const editExam = async (values) => {
    return await createPostRequest('/tj/editBL', values)
}

const uploadResult = async (formData) => {
    return await createPostRequest('/tj/uploadFiles ', formData)
}



export {
    getEntryExamInfo,
    getEntryExamList,
    deleteEntryExam,
    saveExam,
    editExam,
    uploadResult
}